<?php
Junction_FileCabinet::using("Junction_Query_Builder");
/**
 * Helper class to create sql update statements
 * 
 * <code>DELETE FROM {tablename} WHERE {clause}</code>
 * 
 * @package junction.query
 */
class Junction_Query_Delete extends Junction_Query_Builder {
	
	private $_table;
	
	/**
	 * Bind a table to the query
	 *
	 * @param String $table
	 */
	public function bindTable($table) {
		$this->_table = $table;
	}
	
	/**
	 * Bind a value to the primary key
	 *
	 * @param String $property
	 */
	public function bindKey($column, $value) {
		
	}
	
	/**
	 * Bind a value to a non-key column
	 *
	 * @param String $column
	 * @param String $value
	 */
	public function bindProperty($column, $value) {
		
	}
	
	/**
	 * Retrieve the query as a string
	 * 
	 * <p>Not all dao libraries (ADODB for example) can take the builder
	 * as an object and call __toString on it correctly so it's best to
	 * have an explicit method call instead.
	 *
	 * @return String
	 */
	public function toSql() {
		return "DELETE FROM " . $this->_table;
	}
}
?>